<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>就业部</title>
<link rel="stylesheet" type="text/css" href="_ADMIN_css/css.css" />
<script type="text/javascript" src="_ADMIN_js/jquery.min.js"></script>
<script type="text/javascript" src="_ADMIN_js/layer/layer.js"></script>
<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>
<style>
.buttone{
		display: inline-block;
		padding: 1% 1.5%;
		color: white;
		background: #47a4e1;
		border: none;
		border-radius: 4px;
	}
	td{
		padding:10px 0;
	}
</style>
<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="_ADMIN_img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">就业部</a>&nbsp;-</span>&nbsp;人员管理
			</div>
		</div>

		<div class="page">
			<!-- banner页面样式 -->
			<div class="connoisseur">
						<div class="cfD">
							<a class="button" style="display:block;border-radius:5px;text-align:center;line-height:30px;" href="{:url('admin/job/add')}">添加</a >
						</div>
				</div>
				<!-- banner 表格 显示 -->
				<div class="conShow">
					<table border="1" cellspacing="0" cellpadding="0">
						<tr>
							<td width="66px" class="tdColor tdC">序号</td>
							<td width="355px" class="tdColor">姓名</td>
							<td width="260px" class="tdColor">联系电话</td>
							<td width="275px" class="tdColor">入职时间</td>
							<td width="275px" class="tdColor">备注</td>
							<td width="130px" class="tdColor">操作</td>
						</tr>
						{foreach $select_user as $k=>$v}
						<tr>
							<td>{$k+1}</td>
							<td>{$v.user_name}</td>
							<td>{$v.user_phone}</td>
							<td>{:date('Y/m/d',$v.user_createtime)}</td>
							<td>{$v.user_text}</td>
							<td class="td">
							<a href="{:url('admin/job/alter',['user_id' => $v.user_id])}"><button class="buttone" style="position:relative; z-index: -1">修改</button></a>
							<button value="{$v.user_id}" class="buttone" style="position:relative;cursor:pointer">删除</button>
							</td>
						</tr>
						{/foreach}
					</table>
					<script>
						$(".td").on('click','button',function(){
							var user_id = $(this).val()
							layer.confirm('请问你是否要进行删除操作？', {icon: 7, title:'提示'}, function(){
								$.post("{:url('admin/open/delete')}",{'user_id':user_id},function(data){
									if(data == 1){
										layer.msg('删除成功', {icon: 6})
										on()
									}else{
										layer.msg('删除失败', {icon: 5});
									}
								})
							});
						})
					</script>
					<script>
						function on() {
							setInterval(function(){ window.location.href = "{:url('admin/job/person')}" }, 2000);
						}
					</script>
				</div>
				<!-- banner 表格 显示 end-->
			</div>
			<!-- banner页面样式end -->
		</div>

	</div>


	<!-- 删除弹出框 -->
	<div class="banDel">
		<div class="delete">
			<div class="close">
				<a><img src="_ADMIN_img/shanchu.png" /></a>
			</div>
			<p class="delP1">你确定要删除此条记录吗？</p>
			<p class="delP2">
				<a href="#" class="ok yes">确定</a><a class="ok no">取消</a>
			</p>
		</div>
	</div>
	<!-- 删除弹出框  end-->
</body>

<script type="text/javascript">
// 广告弹出框
$(".delban").click(function(){
  $(".banDel").show();
});
$(".close").click(function(){
  $(".banDel").hide();
});
$(".no").click(function(){
  $(".banDel").hide();
});
// 广告弹出框 end
</script>
</html>